<h1>Login</h1>

<p><?=validation_errors()?></p>
<? if($status_message != '') echo '<p><span class="page_error">'.$status_message.'</span></p>' ?>
<form action="login" method="post">
    <p><label for="email">Email:</label>
        <input type="text" name="email" id="email" maxlength="50" value="<?=set_value('email')?>" />
        <span class="error_message"><?=form_error('email')?></span></p>
    <p><label for="password">Password:</label>
        <input type="password" name="password" id="password" maxlength="20" />
        <span class="error_message"><?=form_error('password')?></span></p>
    <p><input type="submit" value="Login" /></p>
</form>

<p><a href="forgot_password">Forgot your password?</a></p>